﻿<%@ Page language="c#" Codebehind="ListView.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.Linkman.ListView" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="zh-cn" />
<meta name="author" content="Herry" />
<meta name="Copyright" content="Copyright (c) 2009 himm.cn" />
<title>联系人列表</title>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<link rel="stylesheet" type="text/css" href="/css/other.css" media="screen" />
<link rel="stylesheet" type="text/css" href="/css/table.css" />
<script>
function selectAll()
{
	var len=document.ListView.elements.length;
	var i;
    for (i=0;i<len;i++){
	if (document.ListView.elements[i].type=="checkbox"){
        document.ListView.elements[i].checked=!document.ListView.elements[i].checked;								
				 }
			}
}

</script>
</head>
<body>
<form id="ListView" method="post" runat="server">

<div class="m">
  <div class="path"><span class="right"><asp:dropdownlist id="ddl_CustomLinkmanType" runat="server" Visible="False" AutoPostBack="True" Width="100px"></asp:dropdownlist><input type="button" value="查 询" class="redbuttoncss" onclick="location.href='Search/index.aspx'"><input id="btn_SelAll" onclick="selectAll()" type="button" value="全 选" class="redbuttoncss"><asp:button id="btn_Del" runat="server" Text="删 除" CssClass="redbuttoncss"></asp:button></span><a href="/SubModule/UnitiveDocument/Desktop.aspx">我的桌面</a> >> 我的联系人</div>
  <div class="con">
		<div class="tabnav">
        <p class="tabnavhead"> 
        <span id="span_nav1" runat="server"><asp:linkbutton id="lbtn_Staff" runat="server" CommandArgument="1">员工联系人</asp:linkbutton></span> 
        <span id="span_nav2" runat="server"><asp:linkbutton id="lbtn_Client" runat="server" CommandArgument="2">客户联系人</asp:linkbutton></span>
        <span id="span_nav3" runat="server"><asp:linkbutton id="lbtn_Custom" runat="server" CommandArgument="3">自定义联系人</asp:linkbutton></span>
        <span id="span_nav4" runat="server"><asp:hyperlink id="lbtn_AddLinkman" runat="server" NavigateUrl="AddLinkman.aspx">添加联系人</asp:hyperlink></span>
        </p>
</div>
							<asp:datagrid id="dgrd_CustomLinkman" runat="server" Width="100%" AutoGenerateColumns="False"
								AllowPaging="True" BorderColor="#337FB2" BorderWidth="0px" CellPadding="3" PageSize="15">
								<AlternatingItemStyle BackColor="#E8F4FF"></AlternatingItemStyle>
								<ItemStyle  ></ItemStyle>
								<HeaderStyle   ForeColor="#FFFFFF" BackColor="#337FB2"></HeaderStyle>
								<Columns>
									<asp:TemplateColumn>
										<HeaderStyle Width="20px"></HeaderStyle>
										<ItemTemplate>
											<asp:CheckBox name="cbx_" Runat="server"></asp:CheckBox>
										</ItemTemplate>
									</asp:TemplateColumn>
									<asp:TemplateColumn HeaderText="姓名">
										<ItemTemplate>
											<asp:HyperLink runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.name") %>' NavigateUrl='<%# "CustomLinkmanInfo.aspx?ID="+DataBinder.Eval(Container,"DataItem.ID") %>' Target=_blank>
											</asp:HyperLink>
										</ItemTemplate>
									</asp:TemplateColumn>
									<asp:BoundColumn DataField="sexname" HeaderText="性别"></asp:BoundColumn>
									<asp:TemplateColumn HeaderText="手机">
										<ItemTemplate>
											<asp:Label runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.mobile") %>'>
											</asp:Label>
										</ItemTemplate>
										<EditItemTemplate>
											<asp:TextBox runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.mobile") %>'>
											</asp:TextBox>
										</EditItemTemplate>
									</asp:TemplateColumn>
									<asp:BoundColumn DataField="email" HeaderText="Email"></asp:BoundColumn>
									<asp:BoundColumn DataField="unitaddress" HeaderText="单位地址"></asp:BoundColumn>
									<asp:BoundColumn DataField="unittelephone" HeaderText="单位电话"></asp:BoundColumn>
									<asp:HyperLinkColumn Text="详细" Target="_blank" DataNavigateUrlField="ID" DataNavigateUrlFormatString="CustomLinkmanInfo.aspx?ID={0}">
										<HeaderStyle Width="10px"></HeaderStyle>
									</asp:HyperLinkColumn>
								</Columns>
								<PagerStyle HorizontalAlign="Right" BackColor="#E8F4FF" Mode="NumericPages"></PagerStyle>
							</asp:datagrid>
							<asp:datagrid id="dgrd_ClientLinkman" runat="server" Width="100%" AutoGenerateColumns="False"
								AllowPaging="True" BorderColor="#337FB2" BorderWidth="0px" CellPadding="3" PageSize="15">
								<AlternatingItemStyle BackColor="#E8F4FF"></AlternatingItemStyle>
								<ItemStyle  ></ItemStyle>
								<HeaderStyle   ForeColor="#FFFFFF" BackColor="#337FB2"></HeaderStyle>
								<Columns>
									<asp:TemplateColumn>
										<HeaderStyle Width="20px"></HeaderStyle>
										<ItemTemplate>
											<asp:CheckBox name="cbx_" Runat="server"></asp:CheckBox>
										</ItemTemplate>
									</asp:TemplateColumn>
									<asp:TemplateColumn HeaderText="姓名">
										<ItemTemplate>
											<asp:HyperLink runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.name") %>' NavigateUrl='<%# "../CM/Linkman.aspx?LinkmanID="+DataBinder.Eval(Container,"DataItem.ID")+"&from=mylinkman"%>' Target=_blank>
											</asp:HyperLink>
										</ItemTemplate>
									</asp:TemplateColumn>
									<asp:TemplateColumn HeaderText="手机">
										<ItemTemplate>
											<asp:Label runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.mobile") %>'>
											</asp:Label>
										</ItemTemplate>
										<EditItemTemplate>
											<asp:TextBox runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.mobile") %>'>
											</asp:TextBox>
										</EditItemTemplate>
									</asp:TemplateColumn>
									<asp:BoundColumn DataField="telephone" HeaderText="电话"></asp:BoundColumn>
									<asp:BoundColumn DataField="email" HeaderText="Email"></asp:BoundColumn>
									<asp:BoundColumn DataField="unitname" HeaderText="单位"></asp:BoundColumn>
									<asp:BoundColumn DataField="position" HeaderText="职务"></asp:BoundColumn>
									<asp:BoundColumn DataField="address" HeaderText="家庭地址"></asp:BoundColumn>
									<asp:HyperLinkColumn Text="详细" Target="_blank" DataNavigateUrlField="ID" DataNavigateUrlFormatString="../CM/Linkman.aspx?LinkmanID={0}&amp;from=mylinkman">
										<HeaderStyle Width="10px"></HeaderStyle>
									</asp:HyperLinkColumn>
								</Columns>
								<PagerStyle HorizontalAlign="Right" BackColor="#E8F4FF" Mode="NumericPages"></PagerStyle>
							</asp:datagrid><asp:datagrid id="dgrd_StaffLinkman" runat="server" AllowPaging="True" AutoGenerateColumns="False"
								Width="100%" BorderColor="#337FB2" BorderWidth="0px" CellPadding="3" PageSize="15">
								<AlternatingItemStyle BackColor="#E8F4FF"></AlternatingItemStyle>
								<ItemStyle  ></ItemStyle>
								<HeaderStyle   ForeColor="White" BackColor="#337FB2"></HeaderStyle>
								<Columns>
									<asp:TemplateColumn>
										<HeaderStyle Width="20px"></HeaderStyle>
										<ItemTemplate>
											<asp:CheckBox name="cbx_" Runat="server"></asp:CheckBox>
										</ItemTemplate>
									</asp:TemplateColumn>
									<asp:TemplateColumn HeaderText="真实姓名">
										<ItemTemplate>
											<asp:HyperLink runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.realname") %>' NavigateUrl='<%# "../UnitiveDocument/Mail/Compose.aspx?Action=3&ClassID=0&Username="+ DataBinder.Eval(Container.DataItem,"staff_Name")+"&Name="+DataBinder.Eval(Container,"DataItem.RealName") %>' Target=_blank >
											</asp:HyperLink>
										</ItemTemplate>
									</asp:TemplateColumn>
									<asp:TemplateColumn HeaderText="手机">
										<ItemTemplate>
											<asp:Label runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.mobile") %>'>
											</asp:Label>
										</ItemTemplate>
									</asp:TemplateColumn>
									<asp:BoundColumn DataField="Age" HeaderText="年龄"></asp:BoundColumn>
									<asp:BoundColumn DataField="SexName" HeaderText="性别"></asp:BoundColumn>
									<asp:BoundColumn DataField="Email" HeaderText="Email"></asp:BoundColumn>
									<asp:BoundColumn DataField="Position_Name" HeaderText="所属职位"></asp:BoundColumn>
									<asp:BoundColumn DataField="RQ" HeaderText="注册日期"></asp:BoundColumn>
									<asp:HyperLinkColumn Text="详细" Target="_blank" DataNavigateUrlField="staff_id" DataNavigateUrlFormatString="StaffInfo.aspx?Staff_ID={0}">
										<HeaderStyle Width="10px"></HeaderStyle>
									</asp:HyperLinkColumn>
								</Columns>
								<PagerStyle HorizontalAlign="Right" Mode="NumericPages"></PagerStyle>
							</asp:datagrid>
  </div>
</div>
</form>

</body>
</html>